package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.WarmClassRecordDao;
import com.platform.entity.WarmClassRecordEntity;
import com.platform.service.WarmClassRecordService;

/**
 * 暖课购买记录Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-01 16:50:06
 */
@Service("warmClassRecordService")
public class WarmClassRecordServiceImpl implements WarmClassRecordService {
    @Autowired
    private WarmClassRecordDao warmClassRecordDao;

    @Override
    public WarmClassRecordEntity queryObject(Integer id) {
        return warmClassRecordDao.queryObject(id);
    }

    @Override
    public List<WarmClassRecordEntity> queryList(Map<String, Object> map) {
        return warmClassRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return warmClassRecordDao.queryTotal(map);
    }

    @Override
    public int save(WarmClassRecordEntity warmClassRecord) {
        return warmClassRecordDao.save(warmClassRecord);
    }

    @Override
    public int update(WarmClassRecordEntity warmClassRecord) {
        return warmClassRecordDao.update(warmClassRecord);
    }

    @Override
    public int delete(Integer id) {
        return warmClassRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return warmClassRecordDao.deleteBatch(ids);
    }
}
